
<h2> <?php echo $this->info['title'];?> </h2>
<p class='paragraf' >Искать пользователя</p>
<div id="searchBlock" class='ps-border'>


<form action='/search/' method='get' enctype='application/x-www-form-urlencoded'> 
 <fieldset>
 <div class="label-header">Пол</div>
 <label><input type="radio" name="gender" value="0" checked="checked">Мужской</label>
 <label><input type="radio" name="gender" value="1">Женский</label>
 </fieldset>

 <fieldset>
 <div class="label-header">Возраст</div>
 <select name="ageFrom" >
 <option class="default" value="0">Не важно</option>
 <option value="16">16</option>
 <option value="17">17</option>
 <option value="18">18</option>
 <option value="19">19</option>
 <option value="20">20</option>
 <option value="21">21</option>
 <option value="22">22</option>
 <option value="23">23</option>
 <option value="24">24</option>
 <option value="25">25</option>
 <option value="26">26</option>
 <option value="27">27</option>
 <option value="28">28</option>
 <option value="29">29</option>
 <option value="30">30</option>
 <option value="31">31</option>
 <option value="32">32</option>
 <option value="33">33</option>
 <option value="34">34</option>
 <option value="35">35</option>
 <option value="36">36</option>
 <option value="37">37</option>
 <option value="38">38</option>
 <option value="39">39</option>
 <option value="40">40</option>
 <option value="41">41</option>
 <option value="42">42</option>
 <option value="43">43</option>
 <option value="44">44</option>
 <option value="45">45</option>
 <option value="46">46</option>
 <option value="47">47</option>
 <option value="48">48</option>
 <option value="49">49</option>
 <option value="50">50</option>
 <option value="51">51</option>
 <option value="52">52</option>
 <option value="53">53</option>
 <option value="54">54</option>
 <option value="55">55</option>
 <option value="56">56</option>
 <option value="57">57</option>
 <option value="58">58</option>
 <option value="59">59</option>
 <option value="60">60</option>
 </select>
 –
 <select name="ageTo">
 <option class="default" value="100">Не важно</option>
 <option value="16">16</option>
 <option value="17">17</option>
 <option value="18">18</option>
 <option value="19">19</option>
 <option value="20">20</option>
 <option value="21">21</option>
 <option value="22">22</option>
 <option value="23">23</option>
 <option value="24">24</option>
 <option value="25">25</option>
 <option value="26">26</option>
 <option value="27">27</option>
 <option value="28">28</option>
 <option value="29">29</option>
 <option value="30">30</option>
 <option value="31">31</option>
 <option value="32">32</option>
 <option value="33">33</option>
 <option value="34">34</option>
 <option value="35">35</option>
 <option value="36">36</option>
 <option value="37">37</option>
 <option value="38">38</option>
 <option value="39">39</option>
 <option value="40">40</option>
 <option value="41">41</option>
 <option value="42">42</option>
 <option value="43">43</option>
 <option value="44">44</option>
 <option value="45">45</option>
 <option value="46">46</option>
 <option value="47">47</option>
 <option value="48">48</option>
 <option value="49">49</option>
 <option value="50">50</option>
 <option value="51">51</option>
 <option value="52">52</option>
 <option value="53">53</option>
 <option value="54">54</option>
 <option value="55">55</option>
 <option value="56">56</option>
 <option value="57">57</option>
 <option value="58">58</option>
 <option value="59">59</option>
 <option value="60">60</option>
 </select>
 </fieldset>

  <fieldset>
<input type='text' name='name' placeholder='имя..'>
 </fieldset>
 
 <fieldset>
<input class='ps-searchButton' type='submit' value='Найти'>
 </fieldset>
 </form>
 </div> 
 <?php  
 echo "<div class='pager'>" . $this->pager . "</div>\n";
 
 if (isset($this->users)){
    echo "<div id='usersList' class='ps-border'>\n";
    foreach($this->users as $k => $v){
        echo "<ul class='usersBySearch'>\n
        <li class='userPicture'> <a href='/user/?id=" . $v->getId() . "'><img width='200' class='ps-imageBorder' src='" . $v->getPicture() . "' ></a></li>\n
        <li class='userName'>" . $v->getFirstName() . ' '. $v->getSecondName() . "</li>\n
        <li class='userAge'>День рождения : " . $v->getBirthday() . "</li>\n
        <li class='userFullRead'><a class='ps-searchButton' href='/user/?id=" . $v->getId() . "'>Посмотреть профиль</a></li>\n
        </ul>\n";
    }
    echo "</div>\n";
     
     
 echo "<div class='pager'>" . $this->pager . "</div>\n";         
 } else{
     if(isset($this->errors)) {
         echo $this->errors;
     }
 }

 